import request from "@/utils/request";

export function login(data) {
	return request({
		url: "/mock-data/user/login",
		method: "post",
		data
	});
}

export function getInfo(token) {
	return request({
		url: "/mock-data/user/getUserInfo",
		method: "get",
		params: { token }
	});
}

export function logout() {
	return request({
		url: "/mock-data/user/logout",
		method: "post"
	});
}
